import Mock from 'mockjs';

export default {
  'GET /api/admin/chart_data': Mock.mock({
    success: 1,
    message: '@paragraph',
    data: {
      'items|12': [
        {
          'month|+1': 0,
          value: '@integer(1, 3000)',
        },
      ],
    },
  }),
  'GET /api/admin/user/chart_data': Mock.mock({
    success: 1,
    message: '@paragraph',
    data: {
      'items|12': [
        {
          text: '新会员',
          'month|+1': 0,
          value: '@integer(1, 3000)',
        },
      ],
    },
  }),

  'GET /api/admin/hot_word': Mock.mock({
    success: 1,
    data: {
      'items|50-100': [
        {
          'id|+1': 1,
          name: '@cname',
          value: '@integer(1, 3000)',
        },
      ],
    },
  }),

  'GET /api/admin/seller_counter': Mock.mock({
    success: 1,
    data: {
      'items|10': [
        {
          'id|+1': 1,
          name: '@cname',
          value: '@integer(1, 3000)',
          money: '@integer(1, 3000)',
        },
      ],
    },
  }),
};
